package com.shzu.jwc.ty.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PeTheoreticalTeacherExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PeTheoreticalTeacherExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTheoreticalExaminationStartTimeIsNull() {
            addCriterion("theoretical_examination_start_time is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeIsNotNull() {
            addCriterion("theoretical_examination_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeEqualTo(Date value) {
            addCriterion("theoretical_examination_start_time =", value, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeNotEqualTo(Date value) {
            addCriterion("theoretical_examination_start_time <>", value, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeGreaterThan(Date value) {
            addCriterion("theoretical_examination_start_time >", value, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("theoretical_examination_start_time >=", value, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeLessThan(Date value) {
            addCriterion("theoretical_examination_start_time <", value, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("theoretical_examination_start_time <=", value, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeIn(List<Date> values) {
            addCriterion("theoretical_examination_start_time in", values, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeNotIn(List<Date> values) {
            addCriterion("theoretical_examination_start_time not in", values, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeBetween(Date value1, Date value2) {
            addCriterion("theoretical_examination_start_time between", value1, value2, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("theoretical_examination_start_time not between", value1, value2, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeIsNull() {
            addCriterion("theoretical_examination_end_time is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeIsNotNull() {
            addCriterion("theoretical_examination_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeEqualTo(Date value) {
            addCriterion("theoretical_examination_end_time =", value, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeNotEqualTo(Date value) {
            addCriterion("theoretical_examination_end_time <>", value, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeGreaterThan(Date value) {
            addCriterion("theoretical_examination_end_time >", value, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("theoretical_examination_end_time >=", value, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeLessThan(Date value) {
            addCriterion("theoretical_examination_end_time <", value, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("theoretical_examination_end_time <=", value, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeIn(List<Date> values) {
            addCriterion("theoretical_examination_end_time in", values, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeNotIn(List<Date> values) {
            addCriterion("theoretical_examination_end_time not in", values, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeBetween(Date value1, Date value2) {
            addCriterion("theoretical_examination_end_time between", value1, value2, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("theoretical_examination_end_time not between", value1, value2, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameIsNull() {
            addCriterion("theoretical_examination_name is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameIsNotNull() {
            addCriterion("theoretical_examination_name is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameEqualTo(String value) {
            addCriterion("theoretical_examination_name =", value, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameNotEqualTo(String value) {
            addCriterion("theoretical_examination_name <>", value, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameGreaterThan(String value) {
            addCriterion("theoretical_examination_name >", value, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameGreaterThanOrEqualTo(String value) {
            addCriterion("theoretical_examination_name >=", value, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameLessThan(String value) {
            addCriterion("theoretical_examination_name <", value, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameLessThanOrEqualTo(String value) {
            addCriterion("theoretical_examination_name <=", value, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameLike(String value) {
            addCriterion("theoretical_examination_name like", value, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameNotLike(String value) {
            addCriterion("theoretical_examination_name not like", value, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameIn(List<String> values) {
            addCriterion("theoretical_examination_name in", values, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameNotIn(List<String> values) {
            addCriterion("theoretical_examination_name not in", values, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameBetween(String value1, String value2) {
            addCriterion("theoretical_examination_name between", value1, value2, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameNotBetween(String value1, String value2) {
            addCriterion("theoretical_examination_name not between", value1, value2, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceIsNull() {
            addCriterion("theoretical_examination_place is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceIsNotNull() {
            addCriterion("theoretical_examination_place is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceEqualTo(String value) {
            addCriterion("theoretical_examination_place =", value, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceNotEqualTo(String value) {
            addCriterion("theoretical_examination_place <>", value, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceGreaterThan(String value) {
            addCriterion("theoretical_examination_place >", value, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceGreaterThanOrEqualTo(String value) {
            addCriterion("theoretical_examination_place >=", value, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceLessThan(String value) {
            addCriterion("theoretical_examination_place <", value, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceLessThanOrEqualTo(String value) {
            addCriterion("theoretical_examination_place <=", value, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceLike(String value) {
            addCriterion("theoretical_examination_place like", value, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceNotLike(String value) {
            addCriterion("theoretical_examination_place not like", value, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceIn(List<String> values) {
            addCriterion("theoretical_examination_place in", values, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceNotIn(List<String> values) {
            addCriterion("theoretical_examination_place not in", values, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceBetween(String value1, String value2) {
            addCriterion("theoretical_examination_place between", value1, value2, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceNotBetween(String value1, String value2) {
            addCriterion("theoretical_examination_place not between", value1, value2, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationUpperLimitIsNull() {
            addCriterion("theoretical_examination_upper_limit is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationUpperLimitIsNotNull() {
            addCriterion("theoretical_examination_upper_limit is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationUpperLimitEqualTo(Integer value) {
            addCriterion("theoretical_examination_upper_limit =", value, "theoreticalExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationUpperLimitNotEqualTo(Integer value) {
            addCriterion("theoretical_examination_upper_limit <>", value, "theoreticalExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationUpperLimitGreaterThan(Integer value) {
            addCriterion("theoretical_examination_upper_limit >", value, "theoreticalExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationUpperLimitGreaterThanOrEqualTo(Integer value) {
            addCriterion("theoretical_examination_upper_limit >=", value, "theoreticalExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationUpperLimitLessThan(Integer value) {
            addCriterion("theoretical_examination_upper_limit <", value, "theoreticalExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationUpperLimitLessThanOrEqualTo(Integer value) {
            addCriterion("theoretical_examination_upper_limit <=", value, "theoreticalExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationUpperLimitIn(List<Integer> values) {
            addCriterion("theoretical_examination_upper_limit in", values, "theoreticalExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationUpperLimitNotIn(List<Integer> values) {
            addCriterion("theoretical_examination_upper_limit not in", values, "theoreticalExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationUpperLimitBetween(Integer value1, Integer value2) {
            addCriterion("theoretical_examination_upper_limit between", value1, value2, "theoreticalExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationUpperLimitNotBetween(Integer value1, Integer value2) {
            addCriterion("theoretical_examination_upper_limit not between", value1, value2, "theoreticalExaminationUpperLimit");
            return (Criteria) this;
        }

        public Criteria andNameExp6IsNull() {
            addCriterion("Name_exp_6 is null");
            return (Criteria) this;
        }

        public Criteria andNameExp6IsNotNull() {
            addCriterion("Name_exp_6 is not null");
            return (Criteria) this;
        }

        public Criteria andNameExp6EqualTo(String value) {
            addCriterion("Name_exp_6 =", value, "nameExp6");
            return (Criteria) this;
        }

        public Criteria andNameExp6NotEqualTo(String value) {
            addCriterion("Name_exp_6 <>", value, "nameExp6");
            return (Criteria) this;
        }

        public Criteria andNameExp6GreaterThan(String value) {
            addCriterion("Name_exp_6 >", value, "nameExp6");
            return (Criteria) this;
        }

        public Criteria andNameExp6GreaterThanOrEqualTo(String value) {
            addCriterion("Name_exp_6 >=", value, "nameExp6");
            return (Criteria) this;
        }

        public Criteria andNameExp6LessThan(String value) {
            addCriterion("Name_exp_6 <", value, "nameExp6");
            return (Criteria) this;
        }

        public Criteria andNameExp6LessThanOrEqualTo(String value) {
            addCriterion("Name_exp_6 <=", value, "nameExp6");
            return (Criteria) this;
        }

        public Criteria andNameExp6Like(String value) {
            addCriterion("Name_exp_6 like", value, "nameExp6");
            return (Criteria) this;
        }

        public Criteria andNameExp6NotLike(String value) {
            addCriterion("Name_exp_6 not like", value, "nameExp6");
            return (Criteria) this;
        }

        public Criteria andNameExp6In(List<String> values) {
            addCriterion("Name_exp_6 in", values, "nameExp6");
            return (Criteria) this;
        }

        public Criteria andNameExp6NotIn(List<String> values) {
            addCriterion("Name_exp_6 not in", values, "nameExp6");
            return (Criteria) this;
        }

        public Criteria andNameExp6Between(String value1, String value2) {
            addCriterion("Name_exp_6 between", value1, value2, "nameExp6");
            return (Criteria) this;
        }

        public Criteria andNameExp6NotBetween(String value1, String value2) {
            addCriterion("Name_exp_6 not between", value1, value2, "nameExp6");
            return (Criteria) this;
        }

        public Criteria andNameExp7IsNull() {
            addCriterion("Name_exp_7 is null");
            return (Criteria) this;
        }

        public Criteria andNameExp7IsNotNull() {
            addCriterion("Name_exp_7 is not null");
            return (Criteria) this;
        }

        public Criteria andNameExp7EqualTo(String value) {
            addCriterion("Name_exp_7 =", value, "nameExp7");
            return (Criteria) this;
        }

        public Criteria andNameExp7NotEqualTo(String value) {
            addCriterion("Name_exp_7 <>", value, "nameExp7");
            return (Criteria) this;
        }

        public Criteria andNameExp7GreaterThan(String value) {
            addCriterion("Name_exp_7 >", value, "nameExp7");
            return (Criteria) this;
        }

        public Criteria andNameExp7GreaterThanOrEqualTo(String value) {
            addCriterion("Name_exp_7 >=", value, "nameExp7");
            return (Criteria) this;
        }

        public Criteria andNameExp7LessThan(String value) {
            addCriterion("Name_exp_7 <", value, "nameExp7");
            return (Criteria) this;
        }

        public Criteria andNameExp7LessThanOrEqualTo(String value) {
            addCriterion("Name_exp_7 <=", value, "nameExp7");
            return (Criteria) this;
        }

        public Criteria andNameExp7Like(String value) {
            addCriterion("Name_exp_7 like", value, "nameExp7");
            return (Criteria) this;
        }

        public Criteria andNameExp7NotLike(String value) {
            addCriterion("Name_exp_7 not like", value, "nameExp7");
            return (Criteria) this;
        }

        public Criteria andNameExp7In(List<String> values) {
            addCriterion("Name_exp_7 in", values, "nameExp7");
            return (Criteria) this;
        }

        public Criteria andNameExp7NotIn(List<String> values) {
            addCriterion("Name_exp_7 not in", values, "nameExp7");
            return (Criteria) this;
        }

        public Criteria andNameExp7Between(String value1, String value2) {
            addCriterion("Name_exp_7 between", value1, value2, "nameExp7");
            return (Criteria) this;
        }

        public Criteria andNameExp7NotBetween(String value1, String value2) {
            addCriterion("Name_exp_7 not between", value1, value2, "nameExp7");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}